home *** CD-ROM | disk | FTP | other *** search
- Path: news.cc.uic.edu!usenet
- From: Qi Zeng <zeng@sunphy1.phy.uic.edu>
- Newsgroups: comp.lang.c
- Subject: variable length string
- Date: 5 Feb 1996 21:19:35 GMT
- Organization: University of Illinois at Chicago
- Message-ID: <4f5s97$8sho@tigger.cc.uic.edu>
- NNTP-Posting-Host: sunphy1.phy.uic.edu
-
- Hi, I have a question in reading a variable length string:
- Suppose you want to read from stdin a string, but you do not know how
- long it will be. You have to assign the string to some char*, to use
- it say as an element part of node in an linked list.
- How can you do that? .
- I read through the faq and some books, but could not find the answer.
- I can think out a complicate function to do that. But is there any
- simple way to do that?
- Thanks in advance.
-
- Q I
-
-